package com.ddm.service.impl;

import com.ddm.mapper.ProfitMapper;
import com.ddm.service.IProfitService;
import com.entity.Profit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ProfitServiceImpl implements IProfitService {

    @Autowired
    private ProfitMapper profitMapper;

    @Override
    public int insertProfit(Profit profit) {
        return profitMapper.insertProfit(profit);
    }

    @Override
    public List<Profit> selectProfitList(Profit profit) {
        return profitMapper.selectProfitList(profit);
    }
}
